Skip to content

take aria-hidden from theme and add to dt table itself - #28

Open
tkranenburgrivm wants to merge 4 commits into
mainfrom
bug/bootstrap_page
Open

tkranenburgrivm wants to merge 4 commits into
mainfrom
bug/bootstrap_page

Conversation

@tkranenburgrivm

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change that provides screen-reader-only styling independently of the optional theme.

No open issues 🎉

What changed in this PR

Moves screen-reader-only styling from the optional theme into ro_dt_table(), so tables provide it independently of the theme or host Bootstrap version.

Changes:

  • Removes the .visually-hidden CSS rule from the theme.
  • Adds the same rule through the table’s JavaScript callback, with an element-ID check to inject it only once per document.
File Description
R/​ro_dt_theme.R Removes theme-provided screen-reader-only styling.
R/​ro_dt_table.R Injects screen-reader-only styling during table initialization.

Review effort: Balanced

Co-authored-by: tkranenburgrivm <235857189+tkranenburgrivm@users.noreply.github.com>
hypebright and others added 2 commits November 9, 2026 14:50
No longer needed: main already silences missing_package_linter in the vignette
(same as the other ROvis repos), so ci.yaml stays identical across the suite.

This reverts commit 6a235f0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hypebright

Copy link
Copy Markdown
Contributor

@tkranenburgrivm I reverted the Copilot commit that added local::. to the lint job in ci.yaml (7c67885). The lint error came from library(ROvis.table) in the vignette, and main already fixes that with # nolint: missing_package_linter (same as the other ROvis repos). Now that main is merged in, lintr passes without the workaround, and ci.yaml stays identical across the repos. This PR now only changes R/ro_dt_table.R and R/ro_dt_theme.R.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants